package com.zdlog.wenjuan.dao;

import com.zdlog.wenjuan.dataobject.ProblemOption;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * @program: wenjuanSer
 * @PACKAGE_NAME: com.zdlog.wenjuan.dao
 * @author: Kuaile
 * @create: 2018-02-03 22:50
 **/
public interface ProblemOptionRepository extends JpaRepository<ProblemOption, Integer> {
  //  List<ProblemOption> findByProblemIdOrderBySerialNumberAsc(String problem);

    List<ProblemOption> findByProblemIdOrderBySerialNumberAsc(String problemId);


    ProblemOption findByOptionId(Integer optionId);
}
